package ls.jpa.chapterB.embedded;


import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Barudisshu
 */
@Embeddable
public class EmployeePeriod implements Serializable {

    @Column(name = "EmployeeStartDate")
    @Temporal(TemporalType.DATE)
    private Date startDate;

    @Column(name = "EmployeeEndDate")
    @Temporal(TemporalType.DATE)
    private Date endDate;

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

}